NavigationSpec

Types

Link copied to clipboard
data class Browser(val url: <Error class: unknown class>, val viewType: NavigationSpec.Browser.Type) : NavigationSpec

Opens the browser

Link copied to clipboard
data class Dismiss(val toDismiss: (<Error class: unknown class>) -> <Error class: unknown class> = { it }, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Dismisses the parent.

Link copied to clipboard
data class DocumentSelector(val documentSelectorSettings: NavigationSpec.DocumentSelector.DocumentSelectorSettings, val documentSelectorAppearance: NavigationSpec.DocumentSelector.DocumentSelectorAppearance, val delegate: <Error class: unknown class>, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a UIDocumentBrowserViewController

Link copied to clipboard
data class Email(val emailSettings: NavigationSpec.Email.EmailSettings, val delegate: <Error class: unknown class>? = null, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a MFMailComposeViewController

Link copied to clipboard
data class ImagePicker(val sourceType: <Error class: unknown class> = UIImagePickerControllerSourceType.UIImagePickerControllerSourceTypePhotoLibrary, val mediaType: Set<NavigationSpec.ImagePicker.MediaType> = setOf(MediaType.IMAGE), val navigationDelegate: <Error class: unknown class>, val imagePickerDelegate: <Error class: unknown class>, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a UIImagePickerController to the parent

Link copied to clipboard
data class MediaPicker(val types: Set<NavigationSpec.MediaPicker.Type>, val delegate: <Error class: unknown class>? = null, val settings: NavigationSpec.MediaPicker.Settings = Settings(), val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a MPMediaPickerController to the parent

Link copied to clipboard
data class Message(val messageSettings: NavigationSpec.Message.MessageSettings, val delegate: <Error class: unknown class>, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a MFMessageComposeViewController

Link copied to clipboard
data class Nested(val type: NavigationSpec.Nested.Type = Type.Add, val containerView: <Error class: unknown class>, val nested: () -> <Error class: unknown class>, val constraints: (<Error class: unknown class>, <Error class: unknown class>) -> List<<Error class: unknown class>>? = null) : NavigationSpec

Adds a nested UIViewController to a container UIView.

Link copied to clipboard
data class Phone(val phoneNumber: String) : NavigationSpec

Opens the phone dialer

Link copied to clipboard
data class Pop(val to: <Error class: unknown class>? = null, val animated: Boolean = true, val completion: () -> Unit? = null) : NavigationSpec

Pops the viewController on the parents UINavigationController.

Link copied to clipboard
data class Present(val animated: Boolean = true, val presentationStyle: <Error class: unknown class> = UIModalPresentationAutomatic, val transitionStyle: <Error class: unknown class> = UIModalTransitionStyleCoverVertical, val present: () -> <Error class: unknown class>, val completion: () -> Unit? = null) : NavigationSpec

Lets the parent present a UIViewController using UIViewController.presentViewController.

Link copied to clipboard
data class Push(val animated: Boolean = true, val push: () -> <Error class: unknown class>, val completion: () -> Unit? = null) : NavigationSpec

Navigates to a new view controller by pushing it on top of the parents UINavigationController

Link copied to clipboard
data class Segue(val identifier: String) : NavigationSpec

Triggers a segue with a given identifier on the parent

Link copied to clipboard
data object Settings : NavigationSpec

Opens the Phone settings

Link copied to clipboard
data class Show(val detail: Boolean = false, val show: () -> <Error class: unknown class>) : NavigationSpec

Lets the parent show a UIViewController using UIViewController.showViewController

Link copied to clipboard

Opens the AppStore for a given productId